package com.rex.saas.constants;

/**
 * @author zhusiyu
 * @description: Constants 类
 **/
public final class Constants {

    private Constants(){}


    /**
     * 默认页码
     */
    public static final String DEFAULT_PAGE_INDEX = "1";

    /**
     * 分页大小
     */
    public static final String DEFAULT_PAGE_SIZE = "20";

    /**
     * 默认版本
     */
    public static final int DEFAULT_VERSION = 1;

    /**
     * 空字符串
     */
    public static final String BLANK_STRING = "";
    /**
     * 逗号 ,
     */
    public static final String SYMBOL_COMMA = ",";
    /**
     * 单引号
     */
    public static final String SYMBOL_SINGLE_QUOTATION= "'";
    /**
     * 冒号 :
     */
    public static final String SYMBOL_COLON = ":";
    /**
     * 点 .
     */
    public static final String SYMBOL_POINT = ".";
    /**
     * 等号 =
     */
    public static final String SYMBOL_EQUAL = "=";
    /**
     * 逗号 ,
     */
    public static final String SYMBOL_AND = "&";
    /**
     * 中划线 -
     */
    public static final String SYMBOL_STRIKETHROUGH = "-";

    /**
     * 正则 点 .
     */
    public static final String REGEX_SYMBOL_POINT = "\\.";
    /**
     * 星 *
     */
    public static final String SYMBOL_ASTERISK = "*";

    /**
     * 正则 邮箱
     */
    public static final String REGEX_EMAIL = "^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$";

    /**
     * 重复key
     */
    public static final String DUPLICATE_KEY = "duplicate key";

    public static final String FLOW_POSTFIX = "-flow-rules";
    public static final String PARAM_FLOW_POSTFIX = "-param-rules";
    public static final String SERVER_NAMESPACE_SET_POSTFIX = "-cs-namespace-set";
    public static final String CLIENT_CONFIG_POSTFIX = "-cc-config";
    public static final String CLUSTER_MAP_POSTFIX = "-cluster-map";

    public static final String UNDEFINED = "undefined";

    /**
     * get请求
     */
    public static final String HTTP_METHOD_GET = "GET";
    /**
     * post请求
     */
    public static final String HTTP_METHOD_POST = "POST";
    public static final String SUCCESS = "success";
    public static final String FAIL = "fail";

    /**
     * blockType
     */
    public static final String BLOCK_TYPE = "blockType";


    /**
     * apollo关键字:partner
     */
    public static final String APOLLO_PARTNER = "partner";

    /**
     * apollo关键字:rpc-version
     */
    public static final String APOLLO_SOAVERSION = "soa-version";

    /**
     * 用户信息关键字:
     */
    public static final String UUID = "_uuid";

    public static final String USER_GUID = "userGuid";

    /**
     * 用户信息关键字:userNewId
     */
    public static final String USER_NEW_ID = "userNewId";

    /**
     * 用户信息关键字:手机号
     */
    public static final String USER_PHONE_NUM = "phoneNumber";
    /**
     * 用户信息关键字:用户平台手机号
     */
    public static final String USER_PLATFORM_MOBILE_PHONE = "userPlatformMobilePhone";

    /**
     * true:
     */
    public static final String TRUE = "true";

    /**
     * false:
     */
    public static final String FALSE = "false";

    /**
     * 默认parent_guid
     */
    public static final Long DEFAULT_PARENT_GUID = -1L;
    /**
     * none
     */
    public static final String NONE_STRING = "none";

    public static final String TOKEN_SERVER_NAMESPACE = "sentinel-token-server";
    /**
     * 默认api版本号
     */
    public static final String DEFAULT_API_VERSION = "1.0.0";

    public static final int ERROR_MSG_LENGTH = 1500;
    public static final String BACK_DOOR_URI = "/rexolar/openapi/xsse";
    public static final String URI = "/";
    public static final String ERROR_URI = "/error";
    public static final String LOGIN_URI = "/rexolar/openapi/login";

    public static final String METHOD_LOGIN = "hello.open.login";

    /**
     * 角色信息
     */
    public static final String CUSTOMER_USER = "CUSTOMER_USER";
    public static final String TENANT_ADMIN = "TENANT_ADMIN";
    public static final String SYSTEM_ADMIN = "SYS_ADMIN";

    /**
     * 品类名称
     */
    public static final String DEFAULT = "default";
    public static final String GW_ZIGBEE = "gateway-zigbee";
    public static final String AIR_CON = "airCon";
    public static final String LIGHT = "light";
    public static final String CT_PROFILE_NAME = "currentTransformer";
    public static final String METER_PROFILE_NAME = "meterSocket";

    /**
     * 用户类型
     */
    public static final String PAAS = "paas";
    public static final String SAAS = "saas";

    /**
     * ct类型
     */
    public static final int CT_IN  = 1;  //电网端
    public static final int CT_OUT = 2;  //发电端
    public static final int CT_SOCKET = 3;  //插座
    public static final int CT_WEINI = 4;  //违逆

    public static final String SWBuildID = "SWBuildID";
    public static final String CT_DIRECTION = "Current_Direction_1";
    public static final String TotalCEI_1 = "TotalCEI_1";
    public static final String TotalCEE_1 = "TotalCEE_1";
    public static final String CEI_1 = "CEI_1";
    public static final String TotalActivePower_1 = "TotalActivePower_1";
    public static final String ActivePower_1 = "ActivePower_1";
    public static final String PowerSwitch_1 = "PowerSwitch_1";
    public static final String DEV_STATUS = "devStatus";
    public static final String RSSI = "Rssi";
    public static final String TotalPV1_1 = "PV_1";
    public static final String TotalPV2_1 = "PV_2";
    public static final String ALARM_CODE_CT_DIRECT = "CTDirectConfigChange";
    public static final String LAST_CONNECT_TIME = "lastConnectTime";
    public static final String LAST_ACTIVITY_TIME = "lastActivityTime";
    public static final String LAST_DISCONNECT_TIME = "lastDisconnectTime";
    public static final String ACTIVE = "active";
    public static final String TEMPERATURE = "temperature";
    public static final String MODE = "mode";
    public static final String SPEED = "speed";
    public static final String ROOM_TEMPERATURE = "roomTemperature";
    public static final String RUN = "RUN";
    public static final String POWER = "power";
    public static final String VOLTAGE = "VOLTAGE";
    public static final String ELECTRIC_CURRENT = "ELECTRIC_CURRENT";
    public static final String VERSION = "version";
    public static final String ModelId_1 = "ModelId_1";
    public static final String ModelId = "ModelId";
    public static final String Status = "Status";
    public static final String SubDevices = "SubDevices";
    public static final String Version = "Version";
    public static final String joinNetTime = "joinNetTime";
    public static final String devStatus = "devStatus";
    public static final String WiFi0 = "WiFi0";


    /**
     */
    public static final String FORMAT_DAY = "yyyy-MM-dd";

    /**
     */
    public static final int STATISTICS_DAY = 1;
    public static final int STATISTICS_MONTH = 2;
    public static final int STATISTICS_YEAR = 3;


    public static final int INPUT = 1;
    public static final int OUTPUT = 2;




}
